package sgd.tp2.api.cmdline;

import com.beust.jcommander.IStringConverter;

public class PacketSizeConverter implements IStringConverter<Integer> {

	@Override
	public Integer convert(String value) {
		int size = Integer.parseInt(value);
		return (size <= 0 ? 1024 : size);
	}
}
